package com.aierjun.sqlaitivity;

import android.app.Activity;
import android.content.ContentValues;
import android.content.Context;
import android.content.Intent;
import android.database.sqlite.SQLiteDatabase;
import android.os.Bundle;
import android.widget.TextView;

/**
 * Created by aierJun on 2016/7/26.
 */
public class TestActivity extends Activity {
    private TextView textView;
    private Context context;
    private static TestActivity self;
    private synchronized static TestActivity getInstance(Context context){
        if (self==null) self=new TestActivity();
        return self;
    }
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test);
        findView();
        initView();
    }

    private void findView() {
        textView= (TextView) findViewById(R.id.text_ok);
    }

    private void initView() {
        Intent intent=getIntent();
        String text=intent.getStringExtra("haha");
        textView.setText(text);
    }
}
